package jaux.tank.admin.core.beetl;

import org.beetl.ext.spring.BeetlGroupUtilConfiguration;
import org.springframework.beans.factory.annotation.Autowired;

import jaux.tank.admin.config.properties.TankProperties;
import jaux.tank.admin.core.util.KaptchaUtil;
import jaux.tank.service.system.impl.ConstantFactory;
import jaux.tank.utils.ToolUtil;

public class BeetlConfiguration extends BeetlGroupUtilConfiguration {

	@Autowired
	TankProperties tankProps;
	
    @Override
    public void initOther() {

        groupTemplate.registerFunctionPackage("shiro", new ShiroExt());
        groupTemplate.registerFunctionPackage("tool", ToolUtil.newInstance());
        groupTemplate.registerFunctionPackage("kaptcha", KaptchaUtil.getInstance());
        groupTemplate.registerFunctionPackage("constant",ConstantFactory.me());
        groupTemplate.registerFunctionPackage("tank", tankProps);

    }

}
